package com.top10.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

/**
 * <p>
 * 会员充值记录表
 * </p>
 *
 * @author su
 * @since 2018-11-05
 */
@TableName("tb_user_deposit")
public class UserDeposit extends Model<UserDeposit> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 会员ID
     */
	private String uid;
    /**
     * 充值金额
     */
	private BigDecimal money;
    /**
     * 订单号
     */
	@TableField("order_sn")
	private String orderSn;
    /**
     * 订单生成时间
     */
	@TableField("order_time")
	private Date orderTime;
    /**
     * 支付方式
     */
	@TableField("pay_code")
	private String payCode;
    /**
     * 第三方交易号
     */
	@TableField("trade_sn")
	private String tradeSn;
    /**
     * 交易状态（第三方）
     */
	@TableField("trade_status")
	private Integer tradeStatus;
    /**
     * 交易时间
     */
	@TableField("trade_time")
	@JsonFormat(pattern="yyyy-MM-dd")
	private Date tradeTime;
    /**
     * 订单状态（是否已入账）
     */
	@TableField("order_status")
	private Integer orderStatus;
	@TableField("audit_person")
	private String auditPerson;
	private String bz;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public String getOrderSn() {
		return orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public String getPayCode() {
		return payCode;
	}

	public void setPayCode(String payCode) {
		this.payCode = payCode;
	}

	public String getTradeSn() {
		return tradeSn;
	}

	public void setTradeSn(String tradeSn) {
		this.tradeSn = tradeSn;
	}

	public Integer getTradeStatus() {
		return tradeStatus;
	}

	public void setTradeStatus(Integer tradeStatus) {
		this.tradeStatus = tradeStatus;
	}

	public Date getTradeTime() {
		return tradeTime;
	}

	public void setTradeTime(Date tradeTime) {
		this.tradeTime = tradeTime;
	}

	public Integer getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getAuditPerson() {
		return auditPerson;
	}

	public void setAuditPerson(String auditPerson) {
		this.auditPerson = auditPerson;
	}

	public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "UserDeposit{" +
			", id=" + id +
			", uid=" + uid +
			", money=" + money +
			", orderSn=" + orderSn +
			", orderTime=" + orderTime +
			", payCode=" + payCode +
			", tradeSn=" + tradeSn +
			", tradeStatus=" + tradeStatus +
			", tradeTime=" + tradeTime +
			", orderStatus=" + orderStatus +
			", auditPerson=" + auditPerson +
			", bz=" + bz +
			"}";
	}
}
